import {Routes, RouterModule} from '@angular/router';
import {ModuleWithProviders} from '@angular/core';
import {FreightComponent} from './freight.component';
import {AddComponent} from './add/add.component';


export const routes: Routes = [
    {
        path: '',
        component: FreightComponent,
        //redirectTo: "all",
        
    },
    {
        path:'add',
        component: AddComponent,
    }
];


export const routing: ModuleWithProviders = RouterModule.forChild(routes);